using System;
using System.Collections.Generic;
using System.Text;

namespace DocToolTipLib.Generics
{
  public class Singleton<T> where T : new()
  {
    protected static T _instance = new T();

    protected Singleton() { }

    public static T Instance
    {
      get {
        if (_instance == null)
        {
          _instance = new T();
        }
        return _instance; }
    }
  }

}
